package org.idtem.utils.freeling;

public class AnalisisSintacticoNodoHojaFreeling extends AnalisisSintacticoNodoBaseFreeling {

	private String _palabra;
	private String _lema;
	private String _EAGLES;
	
	
	
	public AnalisisSintacticoNodoHojaFreeling(String line) throws Exception {
		int startIndex = line.indexOf("(");
		int endIndex = line.lastIndexOf(" -)");
		String tokens = line.substring(startIndex + 1,  endIndex);
		String[] tokensArray = tokens.split(" ");
		if (startIndex == -1 || endIndex < startIndex || tokensArray.length != 3)
			throw new Exception();
			
		_palabra = tokensArray[0];
		_lema = tokensArray[1];
		_EAGLES = tokensArray[2];
		
	}

	public String getPalabra() {
		return _palabra;
	}


	public String getEAGLES() {
		return _EAGLES;
	}


	public String getLema() {
		return _lema;
	}
	
	
}
